import os

from backend.settings.base import BASE_DIR

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}
# 所有文件、推按存储放到 wch_file_storage 中
MEDIA_URL = f'http://yingbao.qducc.com/storage/'
# MEDIA_URL = f'http://{socket.gethostbyname(socket.getfqdn(socket.gethostname()))}:8008/storage/'
MEDIA_ROOT = 'wch_file_storage/storage/'
